#include "dominion.h"
#include "dominion_helpers.h"
#include "rngs.h"
#include <assert.h>
#include <stdio.h>
#include <math.h>
#include <stdlib.h>

// unit test for the smithy card.

int main() {
	struct gameState G;

	int i, r;
	int k[10] = {adventurer, council_room, feast, gardens, mine,
	       remodel, smithy, village, baron, great_hall};

	r = initializeGame(4, k, 1, &G);
	assert(r == 0);
	
	G.deckCount[0] = 0;
	G.discardCount[0] = 0;
	
	i = cardEffect(smithy, 0, 0, 0, &G, 0, NULL);
	
	printf("Deck: %d\nHand: %d\nDiscarded: %d\nReturned Value: %d\n", 
		G.deckCount[0], G.handCount[0], G.discardCount[0], i);

	return 0;
}
